#include"http_server.hpp"
#include<memory>
#include<iostream>

int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        std::cout << "./XXX  port" << std::endl;
        return 1;
    }
    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<Http_server> hp(new Http_server(port));
    hp->Init();
    hp->Start();
    return 0;
}